        <?php if ($volver=="NO") {?>
            <form class="well form-search" action="<?php echo base_url() . "admin.php/recibo_1/genera/pagotodos" ?>" method="post" >
        <?php }else {?>
            <form class="well form-search" action="<?php echo base_url() . "admin.php/pagotodos/inicio/".($ide_lec) ?>" method="post" >
         <?php }?>



    <div id="buscar1"  align="center">
        

        <embed src="<?php echo ($path); ?> " width='100%' height='500'>
        <input type="hidden" name='id_matr' value='<?php echo ($id_matr); ?>'>
        <input type="hidden" name='ide_lec' value='<?php echo ($ide_lec); ?>'>
        <input type="hidden" name='apellido_pers' value='<?php echo ($apellido_pers); ?>'>
        <input type="hidden" name='nombre_pers' value='<?php echo ($nombre_pers); ?>'>
        <input type="hidden" name='cedula_pers' value='<?php echo ($cedula_pers); ?>'>
        <input type="hidden" name='fono_pers' value='<?php echo ($fono_pers); ?>'>
        <input type="hidden" name='celular_pers' value='<?php echo ($celular_pers); ?>'>
        <input type="hidden" name='direccion_pers' value='<?php echo ($direccion_pers); ?>'>
        <input type="hidden" name='monto_canc_matr' value='<?php echo ($monto_canc_matr); ?>'>
        <input type="hidden" name='tipo_doc_pago_mat' value='<?php echo ($tipo_doc_pago_mat); ?>'>
        <input type="hidden" name='concepto' value='<?php echo ($concepto); ?>'>
        <input type="hidden" name='nom_doc_pago_mat' value='<?php echo ($nom_doc_pago_mat); ?>'>
        <input type="hidden" name='nro_comp_pago_mat' value='<?php echo ($nro_comp_pago_mat); ?>'>
        <input type="hidden" name='lote_doc_pago_mat' value='<?php echo ($lote_doc_pago_mat); ?>'>
        <input type="hidden" name='ref_doc_pago_mat' value='<?php echo ($ref_doc_pago_mat); ?>'>
        <input type="hidden" name='monto_rest_doc_pago' value='<?php echo ($monto_rest_doc_pago); ?>'>
        <input type="hidden" name='monto_efec_doc_pago' value='<?php echo ($monto_efec_doc_pago); ?>'>
        <input type="hidden" name='fechadep_doc_pago_mat' value='<?php echo ($fechadep_doc_pago_mat); ?>'>
        
        <?php 
        
            if ($tipo_doc_pago_mat==3 && $nrodepos>1) {
            echo ("<input type='hidden' name='nrodepos' value='".$nrodepos."'>");
            echo ("<input type='hidden' name='monto_rest_doc_pago31' value='".$monto_rest_doc_pago31."'>");
            
                    switch ($nrodepos){
                        case 2:
                            echo ("<input type='hidden' name='nom_doc_pago_mat32' value='".$nom_doc_pago_mat32."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat32' value='".$nro_comp_pago_mat32."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat32' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat32' value='".$ref_doc_pago_mat32."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat12' value='".$fechadep_doc_pago_mat12."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago32' value='".$monto_rest_doc_pago32."'>");

                            break;

                        case 3:
                            echo ("<input type='hidden' name='nom_doc_pago_mat32' value='".$nom_doc_pago_mat32."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat32' value='".$nro_comp_pago_mat32."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat32' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat32' value='".$ref_doc_pago_mat32."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat12' value='".$fechadep_doc_pago_mat12."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago32' value='".$monto_rest_doc_pago32."'>");

                            echo ("<input type='hidden' name='nom_doc_pago_mat33' value='".$nom_doc_pago_mat33."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat33' value='".$nro_comp_pago_mat33."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat33' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat33' value='".$ref_doc_pago_mat33."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat13' value='".$fechadep_doc_pago_mat13."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago33' value='".$monto_rest_doc_pago33."'>");


                            break;

                        case 4:
                            echo ("<input type='hidden' name='nom_doc_pago_mat32' value='".$nom_doc_pago_mat32."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat32' value='".$nro_comp_pago_mat32."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat32' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat32' value='".$ref_doc_pago_mat32."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat12' value='".$fechadep_doc_pago_mat12."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago32' value='".$monto_rest_doc_pago32."'>");

                            echo ("<input type='hidden' name='nom_doc_pago_mat33' value='".$nom_doc_pago_mat33."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat33' value='".$nro_comp_pago_mat33."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat33' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat33' value='".$ref_doc_pago_mat33."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat13' value='".$fechadep_doc_pago_mat13."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago33' value='".$monto_rest_doc_pago33."'>");

                            echo ("<input type='hidden' name='nom_doc_pago_mat34' value='".$nom_doc_pago_mat34."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat34' value='".$nro_comp_pago_mat34."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat34' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat34' value='".$ref_doc_pago_mat34."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat14' value='".$fechadep_doc_pago_mat14."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago34' value='".$monto_rest_doc_pago34."'>");
                            
                            

                            break;
                        
                    }
                    
                }
            
            if ($tipo_doc_pago_mat==6 && $nroefecdepos>1) {
            echo ("<input type='hidden' name='monto_rest_doc_pago61' value='".$monto_rest_doc_pago61."'>");
            echo ("<input type='hidden' name='nroefecdepos' value='".$nroefecdepos."'>");
            
                    switch ($nroefecdepos){
                        case 2:
                            echo ("<input type='hidden' name='nom_doc_pago_mat62' value='".$nom_doc_pago_mat62."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat62' value='".$nro_comp_pago_mat62."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat62' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat62' value='".$ref_doc_pago_mat62."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat22' value='".$fechadep_doc_pago_mat22."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago62' value='".$monto_rest_doc_pago62."'>");

                            break;

                        case 3:
                            echo ("<input type='hidden' name='nom_doc_pago_mat62' value='".$nom_doc_pago_mat62."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat62' value='".$nro_comp_pago_mat62."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat62' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat62' value='".$ref_doc_pago_mat62."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat23' value='".$fechadep_doc_pago_mat23."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago62' value='".$monto_rest_doc_pago62."'>");

                            echo ("<input type='hidden' name='nom_doc_pago_mat63' value='".$nom_doc_pago_mat63."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat63' value='".$nro_comp_pago_mat63."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat63' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat63' value='".$ref_doc_pago_mat63."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat24' value='".$fechadep_doc_pago_mat24."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago63' value='".$monto_rest_doc_pago63."'>");


                            break;

                        case 4:
                            echo ("<input type='hidden' name='nom_doc_pago_mat62' value='".$nom_doc_pago_mat62."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat62' value='".$nro_comp_pago_mat62."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat62' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat62' value='".$ref_doc_pago_mat62."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat22' value='".$fechadep_doc_pago_mat22."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago62' value='".$monto_rest_doc_pago62."'>");

                            echo ("<input type='hidden' name='nom_doc_pago_mat63' value='".$nom_doc_pago_mat63."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat63' value='".$nro_comp_pago_mat63."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat63' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat63' value='".$ref_doc_pago_mat63."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat23' value='".$fechadep_doc_pago_mat23."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago63' value='".$monto_rest_doc_pago63."'>");

                            echo ("<input type='hidden' name='nom_doc_pago_mat64' value='".$nom_doc_pago_mat64."'>");
                            echo ("<input type='hidden' name='nro_comp_pago_mat64' value='".$nro_comp_pago_mat64."'>");
                            echo ("<input type='hidden' name='lote_doc_pago_mat64' value='NINGUNO'>");
                            echo ("<input type='hidden' name='ref_doc_pago_mat64' value='".$ref_doc_pago_mat64."'>");
                            echo ("<input type='hidden' name='fechadep_doc_pago_mat24' value='".$fechadep_doc_pago_mat64."'>");
                            echo ("<input type='hidden' name='monto_rest_doc_pago64' value='".$monto_rest_doc_pago64."'>");
                            
                            

                            break;
                        
                    }
                    
                }
            
            
            ?>
        
        

        <?php if ($volver=="NO") {?>
            <input class="btn" type="submit"  value="Recibo Pago">
        <?php }else {?>
            <input class="btn" type="submit"  value="Volver">
         <?php }?>

    </div>        

</form> 




